import request from "@/utils/request";

// 外出，出差规则分页列表
export function getOutsideListApi(query) {
  return request({
    url: "/attendance/outside/list",
    method: "get",
    params: query,
  });
}

// 新增外出，出差规则
export function addOutsideApi(data) {
  return request({
    url: "/attendance/outside",
    method: "post",
    data: data,
  });
}

// 删除补卡规则管理
export function delOutsideApi(id) {
  return request({
    url: "/attendance/outside/" + id,
    method: "delete",
  });
}

// 查询外出规则管理详细
export function getOutsideByIdApi(id) {
  return request({
    url: "/attendance/outside/" + id,
    method: "get",
  });
}

// 修改外出，出差规则
export function updateOutsideApi(data) {
  return request({
    url: "/attendance/outside",
    method: "put",
    data: data,
  });
}
